

import os


traces = [
    ['1', '1', '1', "traces/yi2.trace"],
    ['4', '2', '4', "traces/yi.trace"],
    ['2', '1', '4', "traces/dave.trace"],
    ['2', '1', '3', "traces/trans.trace"],
    ['2', '2', '3', "traces/trans.trace"],
    ['2', '4', '3', "traces/trans.trace"],
    ['5', '1', '5', "traces/trans.trace"],
    ['5', '1', '5', "traces/long.trace"]
    ]

for trace in traces:
    args = "-s " + trace[0] + " -E " + trace[1] + " -b " + trace[2] + " -t " + trace[3]
    cmd1 = "./csim " + args
    cmd2 = "./csim-ref " + args

    os.system( cmd1 )
    os.system( cmd2 )

    print

